.coupon-detils {
  background-color: #12B3FF;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
}

.coupon-container {
  background-color: #fff;
  border-radius: 20px;
  width: 702px;
  margin: 36px auto 0;
  padding-bottom: 24px;

  .coupon-cont {
    display: flex;

    .price-number {
      padding-left: 24px;
      display: flex;
      align-items: center;

      .text {
        font-size: 80px;
        color: #12B3FF;
      }

      .strong {
        font-size: 80px;
        color: #12B3FF;

        &.name {
          padding-top: 30px;
          font-size: 60px;

          &::first-letter {
            font-size: 60px;
          }
        }

        &::first-letter {
          font-size: 24px;
        }
      }
    }

    .context {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      flex: 1;
      padding: 24px 24px 0 20px;

      .coupon-name {
        position: relative;
        margin-bottom: 6px;
        flex: 1;
        text-align: right;

        .strong {
          position: relative;
          font-size: 28px;
          color: #333;
          font-weight: 500;
          max-width: 288px;
          text-overflow: ellipsis;
          // white-space: nowrap;
          overflow: hidden;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
        }

        .coupon-type {
          position: absolute;
          left: -10px;
          top: 5px;
          font-size: 20px;
          color: #12B3FF;
          transform: translate3d(-100%, 0, 0);
          white-space: nowrap;

          &.hezuo {
            color: #FF7026;
          }
        }
      }

      .msgtext {
        font-size: 20px;
        font-weight: 500;
        color: #999999;
        padding-bottom: 2px;
      }
    }
  }

  .coupon-block {
    position: relative;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    padding: 0 32px;
    display: flex;
    align-items: center;
    overflow: hidden;

    .line {
      width: 100%;
      border-bottom: 3px dashed #E5E5E5;
    }

    &::before,
    &::after {
      content: '';
      position: absolute;
      top: 0;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: #12B3FF;
    }

    &::after {
      left: -20px;
    }

    &::before {
      right: -20px;
    }
  }

  .coupon-cont2 {
    padding-top: 24px;

    .code-name {
      font-size: 30px;
      color: #666;
      padding-bottom: 4px;
      text-align: center;
    }

    .code-number {
      font-size: 44px;
      color: #333;
      text-align: center;
    }

    .btn-group {
      display: flex;
      justify-content: space-between;
      padding: 46px 24px 0;

      .btn {
        position: relative;
        flex: 1;
        height: 80px;
        text-align: center;
        line-height: 80px;
        font-size: 28px;
        color: #12b3ff;
        border-radius: 10px;
        border: 2px solid #12B3FF;
        box-sizing: border-box;
        background-color: #fff;

        &:nth-child(2) {
          margin-left: 24px;
          background-color: #12B3FF;
          color: #fff;
        }
      }
    }
  }
}

.coupon-text {
  padding: 48px 24px 0;

  .coupon-title {
    font-size: 28px;
    color: #fff;
  }

  .coupon-p {
    &.show_open {
      .span {
        height: 80px;
        overflow: hidden;

      }

      .open {
        display: inline-flex;
      }
    }

    .hide-height {
      height: 80px;
      display: none;
    }

    .span {
      position: relative;
      font-size: 24px;
      color: rgba(255, 255, 255, 0.6);
      line-height: 40px;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    .open {
      position: absolute;
      bottom: 0;
      right: 8px;
      font-size: 24px;
      display: none;
      background-color: #12B3FF;
      color: #fff;
      // &::before{
      //   content: '...';
      //   display: inline-flex;
      //   padding-right: 20px;
      // }
    }
  }
}

.share-btn {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.qrcode {
  margin: auto;
  display: block;
  margin-bottom: 24px;
}

.qrcode-remark {
  font-size: 24px;
  color: #999;
  text-align: center;
  margin-top: 10px;
}
